package com.rayframework.common.lang3;

import java.util.Objects;

/**
 * 描述
 *
 * @author LiaoYuXing-Ray
 * @version 1.0
 * @createDate 2023/11/25 13:53
 **/
public class Validate {

    public static <T> T notNull(T object, String message, Object... values) {
        return Objects.requireNonNull(object, () ->
                String.format(message, values)
        );
    }
}
